﻿(function(component, ko) {

    component.SampleModel = function(data, root) {

        var self = this;
        data = data || { };

        //#region observalbe properties(only)
        self.number = ko.observable();
        //#endregion

        //#region computed properties
        //#endregion


        //#region validation
        self.number.extend({
            digit: {
                message: 'It is not digit ! please try again.'
            },
            required: {
                message: 'It is not empty.'
            }
        });
        //#endregion

        return self;

    };

})(window.me = window.me || { }, window.ko);